package com.xd.clap.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class Admin {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @ExcelProperty("手机号")
    private String phone;

    @ExcelProperty("姓名")
    private String name;

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    @ExcelProperty("密码")
    private String password;

    @ExcelProperty("辖区")
    private String address;

    @ExcelProperty("权限")
    //  一级权限代码：927360369
    //  二级权限代码：213261619
    private String authority;

    @ExcelProperty("微信openid")
    private String openId;
}
